<div class="left">
<div class="titles"><?php echo $job['Job']['name'] ?></div>
	<div class="job-detail">
		<span class="sub-titles">职位属性:</span>
		<table  >
			<tr><td class="name">招聘方:</td><td colspan="5"><?php echo $job['Job']['holder'] ?></td></tr>
			<tr><td class="name">地区:</td><td><?php echo $job['City']['name'] ?></td><td class="name">类别</td><td><?php echo $job['JobType']['name'] ?></td><td class="name">类型</td><td><?php echo $job['EmployType']['name'] ?></td></tr>
		</table>
		<span class="sub-titles">职位描述:</span>
		<div class="desc">
			<?php echo $formater->text($job['Job']['description']) ?>
		</div>
		<span class="sub-titles">联系方式:</span>
		<table  >
			<tr><td class="name">联系地址:</td><td colspan="5"><?php echo $job['Job']['address'] ?></td></tr>
			<tr><td class="name">移动电话:</td><td><?php echo $job['Job']['mobile'] ?></td><td class="name">固定电话</td><td><?php echo $job['Job']['phone'] ?></td><td class="name">电子邮件</td><td><?php echo $job['Job']['email'] ?></td></tr>
		</table>		
	</div>
	<div class="comments">
		<div class="sub-titles"> </div>
	<div class="comment-form">
		<?php echo $this->Form->create('Comment',array('url'=>'/comments/add'));?>
	<div class="sub-titles"><?php __('你的评论'); ?></div>
	<?php
		echo $this->Form->textArea('body');
		echo $this->Form->hidden('user_id',array('value'=>$cuid));
		echo $form->hidden('commentable_type',array('value'=>'Job'));
		echo $form->hidden('commentable_id',array('value'=>$job['Job']['id']));
	?>
<?php echo $this->Form->end(__('添加', true));?>
	</div>
		<?php 	foreach ($comments as $comment): ?>
<div class="comment_entry">
    <p class="usr_avatar">
     <?php echo $this->Avatar->userLink($comment['User']) ?>   
    </p>
	<div class="info">
	    <span class="author">
	        <?php echo $linker->userLink($comment['User']) ?>
	    </span>
	    <span class="time"><?php echo $comment['Comment']['created'] ?></span>  
	    <span>
	        <?php if ($own): ?>
        <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $comment['Comment']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $comment['Comment']['id'])); ?>
        
        <?php endif ?>
        </span>
    </div>
	<div class="content">
	    <div><?php echo $comment['Comment']['body'] ?></div>
    </div>
</div>    		    
		    
		<?php endforeach; ?>
	</div>

</div>
<div class="right">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Job', true), array('action' => 'edit', $job['Job']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Job', true), array('action' => 'delete', $job['Job']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $job['Job']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Jobs', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Job', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
	</ul>
</div>
